package com.woniuxy.test;

import com.woniuxy.service.RbacManagerService;
import com.woniuxy.service.RbacRoleService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTestAnnotation {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationAnnotation.xml");
        RbacRoleService managerService = applicationContext.getBean("rbacRoleServiceImpl", RbacRoleService.class);
        managerService.addOne();
    }
}
